
<form class="well form-horizontal span8" action="<?php echo base_url() . "admin.php/pensum/actualizar" ?>" method="post" <?php echo ($opc=='upd'?' ':' onsubmit="return confirmation()"'); ?>>
    <legend>MODIFICAR DATOS DE LA MALLA CURICULAR</legend>
    <?php foreach ($pensum as $i => $row) { ?>
        <div class="control-group">

            <label class="control-label" for="select01">Carrera </label>
            <div class="controls">

                <select id="select01"  name="ide_car">
                    <?php foreach ($carrera as $i => $car) { ?>
                        <option  value ="<?php echo $car['ide_car'] ?>"><?php echo $car['nombre_car'] ?></option>
                    <?php } ?>
                </select>

            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="input03">Descripci&oacute;n de la Malla</label>
            <div class="controls">
                <input type="text" class="input-medium span4"  name="txtdes" value="<?php echo $row["descripcion_pen"]; ?>">
                <li class="icon-asterisk"></li>
                <div class='MensajeError'>
                    <?php echo form_error('txtdes') ?>
                </div>

            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="select03">Estado de la Malla</label>
            <div class="controls ">
                <select id="select03"  name="estado">
                    <option>VIGENTE</option>
                    <option>ANTERIOR</option>
                    <option>PENDIENTE</option>
                    <option>CERRADO</option>
                </select>
            </div>
        </div>

        <fieldset>
            <div class="control-group"> 
                <div class="controls">
                    <input type="hidden" name="txtide" value="<?php echo $row["ide_pen"]; ?>">

                </div>
            </div >
        </fieldset>

        <fieldset>
            <div class="control-group"> 
                <div class="controls">
                    <input type="hidden"  name="txtopc" value="<?php echo $opc; ?>">

                </div>
            </div >
        </fieldset>
    <?php } ?>

    <div class="controls">
        <?php if ($opc == 'upd') { ?>
            <button type="submit" class="btn">Modificar Datos</button>

        <?php } else { ?>
            <button type="submit" class="btn">Eliminar Datos</button>
        <?php } ?>
        <a href="<?php echo base_url() . "admin.php/pensum/inicio" ?>">
            <img src="<?php echo base_url(); ?>commons/images/boton_volver.gif"></a>

    </div> 


</form>


